<script setup>
import { ref } from 'vue'

const count = ref(0)
const say = () => {
  console.log('它是个儿子');
}
// 子组件的属性或方法需要通过 defineExpose 暴露出来
defineExpose({
  count,
  say
})
</script>

<template>
  <div class="child-page">child</div>
</template>

<style scoped></style>
